//
//  ViewController.m
//  JingXingApp
//
//  Created by 王亮 on 15/8/5.
//  Copyright (c) 2015年 王亮. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
    btn.backgroundColor = [UIColor redColor];
    [self.view addSubview:btn];
    [btn addTarget:self action:@selector(btnAction:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)btnAction:(UIButton *)sender {
    
//    payRequsestHandler *pay = [[payRequsestHandler alloc] init];
//    BOOL is = [pay init:APP_ID mch_id:MCH_ID];
//    [pay setKey:@"1040161xiaopoiuytrewqmnbvcxzasdf"];
//    NSDictionary *dic = [pay sendPay_demo;];
//    PayReq* req             = [[PayReq alloc] init];
//    req.openID              = [dic objectForKey:@"appid"];
//    req.partnerId           = [dic objectForKey:@"partnerid"];
//    req.prepayId            = [dic objectForKey:@"prepayid"];
//    req.nonceStr            = [dic objectForKey:@"noncestr"];
//    NSMutableString *stamp  = [dic objectForKey:@"timestamp"];
//    req.timeStamp           = stamp.intValue;
//    req.package             = [dic objectForKey:@"package"];
//    req.sign                = [dic objectForKey:@"sign"];
//    BOOL sendN = [WXApi sendReq:req];
//    
//    NSLog(@"%d",sendN);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
